﻿<%@ Page Language="C#" MasterPageFile="~/MasterPagePopup.master" AutoEventWireup="true"
    CodeFile="InvoiceModal.aspx.cs" Inherits="RM_Invoice" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ModalHeader" runat="Server">
    <style type="text/css">
        html, body
        {
            min-width: 400px !important;
        }
        table.invoicedetails td
        {
            height:22px;
            line-height:22px;
        }
        table.invoicedetails td.money
        {
            text-align:right;           
        }
        table.signature
        {
            font-size:12px; 
            text-align: center; 
            font-style: italic;   
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ModalContent" runat="Server">
    <div style="text-align: center; padding-top: 10px">
        <div style="width: 700px; margin: auto; text-align: left;">
            <div style="padding: 10px; border: 1px solid #ccc">
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td rowspan="2" style="width: 200px">
                            Logo
                        </td>
                        <td>
                        </td>
                        <td style="width: 150px">
                            Mã HD: <gr:Literal ID="uxInvoiceNumber" runat="server"></gr:Literal>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 70px; text-align: center; font-size: 20px; font-weight: bold;">
                            Hóa đơn bán hàng
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
                <table cellpadding="0" cellspacing="0" width="100%" class="invoicedetails">
                    <tr>
                        <td style="width: 150px;">
                            <gr:Literal ID="uxCustomerLabel" runat="server" Text="Khách hàng"></gr:Literal>
                        </td>
                        <td>
                            <gr:Literal ID="uxCustomer" runat="server"></gr:Literal>
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                            <gr:Literal ID="Literal12" runat="server" Text="Mã khách hàng:"></gr:Literal>
                            <gr:Literal ID="uxCustomerCode" runat="server"></gr:Literal>
                        </td>                       
                    </tr>
                    <tr>
                        <td>
                            <gr:Literal ID="uxAddressLabel" runat="server" Text="Địa chỉ"></gr:Literal>
                        </td>
                        <td>
                            <gr:Literal ID="uxAddress" runat="server"></gr:Literal>
                        </td>                        
                    </tr>
                    <tr>
                        <td>
                            <gr:Literal ID="Literal3" runat="server" Text="Ngày vào"></gr:Literal>
                        </td>
                        <td>
                            <gr:Literal ID="uxCheckedInDate" runat="server"></gr:Literal>
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                            <gr:Literal ID="Literal11" runat="server" Text="Ngày ra"></gr:Literal>
                            <gr:Literal ID="uxCheckedOutDate" runat="server"></gr:Literal>
                        </td>
                    </tr>
                     <tr>
                        <td colspan="2"  style=" text-align:right; font-style:italic;">
                            Đơn vị tính: VND
                            <hr />
                        </td>
                     </tr>
                    <tr>
                        <td>
                            <gr:Literal ID="Literal5" runat="server" Text="Tổng tiền phòng"></gr:Literal>
                        </td>
                        <td class="money">
                            <gr:Literal ID="uxRoomFees" runat="server"></gr:Literal>
                        </td>                        
                    </tr>
                    <tr>
                        <td>
                            <gr:Literal ID="Literal6" runat="server" Text="Tổng tiền dịch vụ"></gr:Literal>
                        </td>
                        <td class="money">
                            <gr:Literal ID="uxServiceFees" runat="server" ></gr:Literal>
                        </td>                       
                    </tr>
                    <tr>
                        <td>
                            <gr:Literal ID="Literal8" runat="server" Text="Khoản khác"></gr:Literal>
                        </td>
                         <td class="money">
                            <gr:Literal ID="uxOtherFees" runat="server"></gr:Literal>
                        </td>                       
                    </tr>
                    <tr>
                        <td>
                            <gr:Literal ID="Literal10" runat="server" Text="Khuyến mãi"></gr:Literal>
                        </td>
                        <td class="money">
                            <gr:Literal ID="uxPromotion" runat="server"></gr:Literal>
                        </td>                        
                    </tr>
                    <tr>
                        <td>
                            <gr:Literal ID="Literal9" runat="server" Text="VAT(%)"></gr:Literal>
                        </td>
                        <td class="money">
                            <gr:Literal ID="uxVAT" runat="server"></gr:Literal>
                        </td>                       
                    </tr>
                    <tr>
                        <td>
                            <gr:Literal ID="Literal7" runat="server" Text="Thành tiền"></gr:Literal>
                        </td>
                        <td class="money">
                            <gr:Literal ID="uxAmount" runat="server"></gr:Literal>
                        </td>                       
                    </tr>
                    <tr>
                        <td>
                            <gr:Literal ID="Literal1" runat="server" Text="Trả trước"></gr:Literal>
                        </td>
                        <td class="money">
                            <gr:Literal ID="uxPrepaid" runat="server"></gr:Literal>
                        </td>                        
                    </tr>
                    <tr>
                        <td>
                            <gr:Literal ID="Literal4" runat="server" Text="Còn lại"></gr:Literal>
                        </td>
                        <td class="money">
                            <gr:Literal ID="uxRemaining" runat="server"></gr:Literal>
                        </td>                       
                    </tr>
                     <tr>
                        <td colspan="2">                            
                            <hr />
                        </td>
                     </tr>
                     <tr>
                        <td valign="top">
                            <gr:Literal ID="Literal2" runat="server" Text="Ghi chú"></gr:Literal>
                        </td>
                        <td>
                            <gr:Literal ID="uxDescriptions" runat="server"></gr:Literal>
                        </td>
                    </tr>
                </table>
                <br />
                <table class="signature" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td style="width: 30%">
                            Nhân viên lập phiếu
                        </td>
                        <td style="width: 30%">
                            Thu ngân
                        </td>
                        <td>
                            Khách hàng
                        </td>
                    </tr>
                    <tr>
                        <td valign="bottom" style="height: 50px">
                          <gr:Literal ID="uxCreatedBy" runat="server"></gr:Literal>
                        </td>
                        <td valign="bottom">
                            <gr:Literal ID="uxCashierName" runat="server"></gr:Literal>
                        </td>
                        <td valign="bottom">
                            <gr:Literal ID="uxSignCustomer" runat="server"></gr:Literal>
                        </td>
                    </tr>
                </table>
            </div>
            <div style="padding-top: 10px;" class="noprint">
                <gr:ContainerButton ID="ContainerButton1" runat="server">
                    <span style="float: left">
                        <gr:CheckBox runat="server" ID="uxReceivedMoney" AutoPostBack="true" OnCheckedChanged="uxReceivedMoney_CheckedChanged"
                            Text="Đã thu tiền" ToolTip="Nhấn vào đây (nếu đã thu đủ tiền) để thực hiện thao tác trả phòng"
                            TextAlign="Right" />
                    </span>
                    
                    <gr:LinkButton ID="uxPrint" runat="server" OnClientClick="return RadWindowPrint();" SizeType="FixedSmallShort" CssClassIcon="icon_print"
                        Text="In HD" ToolTip="Xuất biên lai cho khách hàng"></gr:LinkButton>
                    <gr:LinkButton ID="uxClose" runat="server" SizeType="FixedSmallShort" Text="Đóng"
                        ToolTip="Đóng màn hình" CssClassIcon="icon_delete" OnClientClick="return CloseInvoiceModal();"></gr:LinkButton>
                    <span style="clear: both"></span>
                </gr:ContainerButton>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        function CloseInvoiceModal() {
            parent.ReloadPage();
            parent.ClosePopupModal(1);
            return false;
        }
    </script>
</asp:Content>
